<%@ page import="java.util.HashMap" %>
<%@ page import="vo.Equipment" %>
<%@ page import="utils.string.session.SessionStringUtil" %><%--
  Created by IntelliJ IDEA.
  User: Chris
  Date: 2021/5/12
  Time: 15:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<head>
    <title>确定添加修理设备界面</title>
</head>
<%
    int equipmentId = Integer.parseInt(request.getParameter("equipmentId"));
    HashMap allEquipments = (HashMap)session.getAttribute(SessionStringUtil.ALL_UNUSED_EQUIPMENTS);
    Equipment equipment = (Equipment) allEquipments.get(equipmentId);
    String tableUsingId = request.getParameter("tableUsingId");
    request.getSession().setAttribute("tableUsingId",tableUsingId);
    String using_num = request.getParameter("using_num");
%>
<body>
需要修理的设备：<%=equipment.getEquip_name()%>
<form action="servlet/AddFixServlet" method="post">
    现使用中的设备数目:<%=using_num%><BR>
    <input name="equipmentId" type="hidden" value="<%=equipment.getEquip_id()%>">
    <input name="equipmentName" type="hidden"
           value="<%=equipment.getEquip_name()%>">
    <input name="equipmentName" type="hidden"
           value="<%=equipment.getEquip_name()%>">
    所要修理的设备数量:
    <input name="fix_num" type="number">
    所要修理的设备问题:
    <input name="fix_reason" type="text">
    <input type="submit" value="维修">
</body>
</body>
</html>
